package com.eshop.modules.product.service.dto;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.sql.Timestamp;
import com.eshop.modules.product.domain.StoreProduct;
import java.io.Serializable;

public class StoreProductRelationDto implements Serializable
{
    private Long id;
    private Long uid;
    private String userName;
    private Long productId;
    private StoreProduct product;
    private String type;
    private String category;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;
    private Integer isDel;
    
    public Long getId() {
        return this.id;
    }
    
    public Long getUid() {
        return this.uid;
    }
    
    public String getUserName() {
        return this.userName;
    }
    
    public Long getProductId() {
        return this.productId;
    }
    
    public StoreProduct getProduct() {
        return this.product;
    }
    
    public String getType() {
        return this.type;
    }
    
    public String getCategory() {
        return this.category;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public Integer getIsDel() {
        return this.isDel;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setUid(final Long uid) {
        this.uid = uid;
    }
    
    public void setUserName(final String userName) {
        this.userName = userName;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setProduct(final StoreProduct product) {
        this.product = product;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setCategory(final String category) {
        this.category = category;
    }
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setUpdateTime(final Timestamp updateTime) {
        this.updateTime = updateTime;
    }
    
    public void setIsDel(final Integer isDel) {
        this.isDel = isDel;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductRelationDto)) {
            return false;
        }
        final StoreProductRelationDto other = (StoreProductRelationDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$uid = this.getUid();
        final Object other$uid = other.getUid();
        Label_0102: {
            if (this$uid == null) {
                if (other$uid == null) {
                    break Label_0102;
                }
            }
            else if (this$uid.equals(other$uid)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0139: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0139;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$isDel = this.getIsDel();
        final Object other$isDel = other.getIsDel();
        Label_0176: {
            if (this$isDel == null) {
                if (other$isDel == null) {
                    break Label_0176;
                }
            }
            else if (this$isDel.equals(other$isDel)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$userName = this.getUserName();
        final Object other$userName = other.getUserName();
        Label_0213: {
            if (this$userName == null) {
                if (other$userName == null) {
                    break Label_0213;
                }
            }
            else if (this$userName.equals(other$userName)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$product = this.getProduct();
        final Object other$product = other.getProduct();
        Label_0250: {
            if (this$product == null) {
                if (other$product == null) {
                    break Label_0250;
                }
            }
            else if (this$product.equals(other$product)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0287: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0287;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$category = this.getCategory();
        final Object other$category = other.getCategory();
        Label_0324: {
            if (this$category == null) {
                if (other$category == null) {
                    break Label_0324;
                }
            }
            else if (this$category.equals(other$category)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0361: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0361;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$updateTime = this.getUpdateTime();
        final Object other$updateTime = other.getUpdateTime();
        if (this$updateTime == null) {
            if (other$updateTime == null) {
                return true;
            }
        }
        else if (this$updateTime.equals(other$updateTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductRelationDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $uid = this.getUid();
        result = result * 59 + (($uid == null) ? 43 : $uid.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $isDel = this.getIsDel();
        result = result * 59 + (($isDel == null) ? 43 : $isDel.hashCode());
        final Object $userName = this.getUserName();
        result = result * 59 + (($userName == null) ? 43 : $userName.hashCode());
        final Object $product = this.getProduct();
        result = result * 59 + (($product == null) ? 43 : $product.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $category = this.getCategory();
        result = result * 59 + (($category == null) ? 43 : $category.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $updateTime = this.getUpdateTime();
        result = result * 59 + (($updateTime == null) ? 43 : $updateTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductRelationDto(id=" + this.getId() + ", uid=" + this.getUid() + ", userName=" + this.getUserName() + ", productId=" + this.getProductId() + ", product=" + this.getProduct() + ", type=" + this.getType() + ", category=" + this.getCategory() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", isDel=" + this.getIsDel() + ")";
    }
}
